//
//  ZFNewsRequestModel.m
//  HappilyLoan
//
//  Created by 纵情向前 on 2017/4/13.
//  Copyright © 2017年 zongqingxiangqian. All rights reserved.
//

#import "ZFNewsRequestModel.h"
#import "ZFHttpTool.h"
#import "ZFHeader.h"
@implementation ZFNewsRequestModel
+(void)requestSystemNewsSucessBlock:(void (^)(NSDictionary *))successBlock failureBlock:(void (^)(NSInteger))failureBlock{

    [ZFHttpTool postWithURL:[NSString stringWithFormat:@"%@/system/findMsgInfoList",SERVERIP] params:nil bodyStr:@"" success:^(id responseObject) {
        
        successBlock(responseObject);
    } failure:^(NSError *error) {
        
        failureBlock(1);
    }];

}
+ (void)requestFindActivityType:(NSString *)activityType CurrentPage:(NSString *)currentPage SucessBlock:(void (^)(NSDictionary *))successBlock failureBlock:(void (^)(NSInteger))failureBlock{
    NSString *str = @"http://192.168.1.24";
    NSDictionary *dic = @{@"activity_type":activityType,@"currentPage":currentPage};
    [ZFHttpTool postWithURL:[NSString stringWithFormat:@"%@/system/findActivityInfoList",str] params:dic bodyStr:@"" success:^(id responseObject) {
        
        successBlock(responseObject);
    } failure:^(NSError *error) {
        failureBlock(1);
    }];

}

@end
